package com.baizhi.entity;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {
    private Integer userId;
    private String userName;
    private String password;
    private String userCardId;
    private String userTel;
    private String userAddress;
    private String userPostNumber;
    private Integer userIsAdmin;
    private String userQuestion;
    private String userAnswer;
    private List<Record> recordList;

    public User() {
    }

    public User(Integer userId, String userName, String password, String userCardId, String userTel, String userAddress, String userPostNumber, Integer userIsAdmin, String userQuestion, String userAnswer) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.userCardId = userCardId;
        this.userTel = userTel;
        this.userAddress = userAddress;
        this.userPostNumber = userPostNumber;
        this.userIsAdmin = userIsAdmin;
        this.userQuestion = userQuestion;
        this.userAnswer = userAnswer;
    }

    /*public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserCardId() {
        return userCardId;
    }

    public void setUserCardId(String userCardId) {
        this.userCardId = userCardId;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPostNumber() {
        return userPostNumber;
    }

    public void setUserPostNumber(String userPostNumber) {
        this.userPostNumber = userPostNumber;
    }

    public Integer getUserIsAdmin() {
        return userIsAdmin;
    }

    public void setUserIsAdmin(Integer userIsAdmin) {
        this.userIsAdmin = userIsAdmin;
    }

    public String getUserQuestion() {
        return userQuestion;
    }

    public void setUserQuestion(String userQuestion) {
        this.userQuestion = userQuestion;
    }

    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userCardId='" + userCardId + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", userPostNumber='" + userPostNumber + '\'' +
                ", userIsAdmin=" + userIsAdmin +
                ", userQuestion='" + userQuestion + '\'' +
                ", userAnswer='" + userAnswer + '\'' +
                '}';
    }*/

    public User(Integer userId, String userName, String password, String userCardId, String userTel, String userAddress, String userPostNumber, Integer userIsAdmin, String userQuestion, String userAnswer, List<Record> recordList) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.userCardId = userCardId;
        this.userTel = userTel;
        this.userAddress = userAddress;
        this.userPostNumber = userPostNumber;
        this.userIsAdmin = userIsAdmin;
        this.userQuestion = userQuestion;
        this.userAnswer = userAnswer;
        this.recordList = recordList;
    }

    public User(Integer userId, String userName, String password, String userCardId, String userTel, String userAddress, String userPostNumber, Integer userIsAdmin) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.userCardId = userCardId;
        this.userTel = userTel;
        this.userAddress = userAddress;
        this.userPostNumber = userPostNumber;
        this.userIsAdmin = userIsAdmin;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserCardId() {
        return userCardId;
    }

    public void setUserCardId(String userCardId) {
        this.userCardId = userCardId;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPostNumber() {
        return userPostNumber;
    }

    public void setUserPostNumber(String userPostNumber) {
        this.userPostNumber = userPostNumber;
    }

    public Integer getUserIsAdmin() {
        return userIsAdmin;
    }

    public void setUserIsAdmin(Integer userIsAdmin) {
        this.userIsAdmin = userIsAdmin;
    }

    public String getUserQuestion() {
        return userQuestion;
    }

    public void setUserQuestion(String userQuestion) {
        this.userQuestion = userQuestion;
    }

    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }

    public List<Record> getRecordList() {
        return recordList;
    }

    public void setRecordList(List<Record> recordList) {
        this.recordList = recordList;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userCardId='" + userCardId + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", userPostNumber='" + userPostNumber + '\'' +
                ", userIsAdmin=" + userIsAdmin +
                ", userQuestion='" + userQuestion + '\'' +
                ", userAnswer='" + userAnswer + '\'' +
                ", recordList=" + recordList +
                '}';
    }
}
